#ifndef __OS_UTILS_H__
#define __OS_UTILS_H__

/*
#define SWAP(a, b)    \
    asm("xchg %0,%1" : "=r" (a), "=r" (b) : "0" (a), "1" (b));
*/

#define OS_SWAP(a, b) { \
	typeof(a) tmp = a; \
	a = b; b = tmp; }

#endif /* __OS_UTILS_H__ */

